package com.example.K501;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

/**
 * The Dashboard is the primary hub, or "profile" page, of the app.
 * @author WaltonWellness
 *
 */
public class DashboardActivity extends Activity {

	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_dashboard);
        
        
        TextView boards = (TextView) findViewById(R.id.tvBoards);
        boards.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
            	Intent i = new Intent(getApplicationContext(), AchievementsActivity.class);
		        startActivity(i);

            }
        });
        
        TextView Resources = (TextView) findViewById(R.id.tvResources);
        Resources.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
            	Intent i = new Intent(getApplicationContext(), ResourcesActivity.class);
		        startActivity(i);

            }
        });
              
        TextView Profile = (TextView) findViewById(R.id.tvProfile);
        Profile.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
            	Intent i = new Intent(getApplicationContext(), PersonalHistoryActivity.class);
		        startActivity(i);

            }
        });
        
        TextView Goals = (TextView) findViewById(R.id.tvGoals);
        Goals.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
            	Intent i = new Intent(getApplicationContext(), GoalsActivity.class);
		        startActivity(i);

            }
        });
        
        Button Achiev = (Button) findViewById(R.id.buttonAchievements);
        Achiev.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
            	Intent i = new Intent(getApplicationContext(), AchievementsActivity.class);
		        startActivity(i);

            }
        });
        Button Goa = (Button) findViewById(R.id.buttonGoals);
        Goa.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
            	Intent i = new Intent(getApplicationContext(), GoalsActivity.class);
		        startActivity(i);

            }
        });
        
        Button Prof = (Button) findViewById(R.id.buttonProfile);
        Prof.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
            	Intent i = new Intent(getApplicationContext(), PersonalHistoryActivity.class);
		        startActivity(i);

            }
        });
        Button Res = (Button) findViewById(R.id.buttonResources);
        Res.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
            	Intent i = new Intent(getApplicationContext(), ResourcesActivity.class);
		        startActivity(i);

            }
        });
        
//    Button btn_familyhistory = (Button) findViewById(R.id.btn_familyhistory);
//
//    Button btn_personalhistory = (Button) findViewById(R.id.btn_personalhistory);
//
//    Button btn_lifestylequestions = (Button) findViewById(R.id.btn_lifestylequestions);
//
//    Button btn_goals = (Button) findViewById(R.id.btn_goals);
//
//    Button btn_achievements = (Button) findViewById(R.id.btn_achievements);
//
//    Button btn_profile = (Button) findViewById(R.id.btn_profile);
//
//    /**
//     * Handling all button click events
//     * */
//
//    btn_familyhistory.setOnClickListener(new View.OnClickListener() {
//
//        @Override
//        public void onClick(View view) {
//            Intent i = new Intent(getApplicationContext(), FamilyHistoryActivity.class);
//            startActivity(i);
//        }
//    });
//
//    btn_personalhistory.setOnClickListener(new View.OnClickListener() {
//
//        @Override
//        public void onClick(View view) {
//            Intent i = new Intent(getApplicationContext(), PersonalHistoryActivity.class);
//            startActivity(i);
//        }
//    });
//
//    btn_lifestylequestions.setOnClickListener(new View.OnClickListener() {
//
//        @Override
//        public void onClick(View view) {
//            Intent i = new Intent(getApplicationContext(), LifestyleActivity.class);
//            startActivity(i);
//        }
//    });
//
//    btn_goals.setOnClickListener(new View.OnClickListener() {
//
//        @Override
//        public void onClick(View view) {
//            Intent i = new Intent(getApplicationContext(), GoalsActivity.class);
//            startActivity(i);
//        }
//    });
//
//    btn_achievements.setOnClickListener(new View.OnClickListener() {
//
//        @Override
//        public void onClick(View view) {
//            Intent i = new Intent(getApplicationContext(), AchievementsActivity.class);
//            startActivity(i);
//        }
//    });
//
//    btn_profile.setOnClickListener(new View.OnClickListener() {
//
//        @Override
//        public void onClick(View view) {
//            Intent i = new Intent(getApplicationContext(), PersonalizedPlan.class);
//            startActivity(i);
//        }
//    });
    
  }

}
